import java.util.Scanner;

public class 成绩 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入成绩");
        double grade = sc.nextByte();
        if (grade < 0 || grade > 100) {
            System.out.println("成绩输入有误，请重新输入");
        }else{
            if (grade > 0 || grade <  60) {
                System.out.println("成绩：" + grade + "" + "等级：" + "C");
            }else if(grade > 60 || grade < 80) {
                System.out.println("成绩：" + grade + "" + "等级：" + "B");
            }else{
                System.out.println("成绩：" + grade + "" + "等级：" + "A");
            }
        }
    }
}